package com.smarkparking.tool;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 刘涛
 * @create 2021/12/5 17:24
 * 当天剩余秒数
 */
public class OverDate {
    public static Long overTime() {
        Date day = new Date();
        SimpleDateFormat h = new SimpleDateFormat("HH");
        SimpleDateFormat m = new SimpleDateFormat("mm");
        SimpleDateFormat s = new SimpleDateFormat("ss");
        return 24 * 60 * 60 - (Long.valueOf(h.format(day)) * 60 * 60 + Long.valueOf(m.format(day)) * 60 + Long.valueOf(s.format(day)));
    }
}
